def reverse(number):
    return str(number)[::-1]


def isPalindrome(number):
    if str(number) == reverse(number):
        return True
    else:
        return False


print(isPalindrome(input()))
